﻿<sdk:Page x:Class="SampleBrowser.Views.Samples" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="Samples">
    <Grid x:Name="LayoutRoot">
        <ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}">
            <StackPanel x:Name="ContentStackPanel" Margin="0,4,0,0">
                <toolkit:Accordion x:Name="Accordion">
                    <toolkit:Accordion.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Name}" />
                        </DataTemplate>
                    </toolkit:Accordion.ItemTemplate>
                        <toolkit:Accordion.ContentTemplate>
                        <DataTemplate>
                            <ItemsControl Margin="24,0,0,0" ItemsSource="{Binding Samples}">
                                <ItemsControl.ItemTemplate>
                                    <DataTemplate>
                                        <StackPanel Margin="0,4,0,8">
                                            <HyperlinkButton Content="{Binding Name}" NavigateUri="{Binding Link}" Padding="0" BorderThickness="0" />
                                            <TextBlock Text="{Binding Description}" />
                                        </StackPanel>
                                    </DataTemplate>
                                </ItemsControl.ItemTemplate>
                            </ItemsControl>
                        </DataTemplate>
                    </toolkit:Accordion.ContentTemplate>
                </toolkit:Accordion>
            </StackPanel>

        </ScrollViewer>
    </Grid>
</sdk:Page>
